package com.peng.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 权限表
 * @TableName t_permission
 */
@TableName(value ="t_permission")
@Data
public class TPermission implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "name")
    private String name;

    /**
     * 
     */
    @TableField(value = "code")
    private String code;

    /**
     * 
     */
    @TableField(value = "url")
    private String url;

    /**
     * 
     */
    @TableField(value = "type")
    private String type;

    /**
     * 
     */
    @TableField(value = "parent_id")
    private Integer parent_id;

    /**
     * 
     */
    @TableField(value = "order_no")
    private Integer order_no;

    /**
     * 
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 一对多关联
     */
    @TableField(exist = false)
    private List<TPermission> subPermissionList;
}